package com.bl.student.dao.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by liangweikang on 18/8/7.
 */
@Entity
@Data
@Table(name = "USER_SIGN_HISTORY")
@ApiModel(value = "UserSignHistoryEntity", description = "用户签到记录")
@DynamicInsert
@DynamicUpdate
public class UserSignHistoryEntity {


    @Id
    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "userId")
    @Column(name = "user_id")
    private String userId;


    @ApiModelProperty(value = "签到日期")
    @Column(name = "sign_time")
    private Date signTime;

    @ApiModelProperty(value = "获得积分" )
    private int point;

    @ApiModelProperty(value = "创建时间")
    @Column(name = "create_time")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @Column(name = "update_time")
    private Date updateTime;
}
